package o;

import com.huawei.fastengine.BuildConfig;
import java.util.ArrayList;
import java.util.List;

public final class bkb {
    private static final List<d<String, Integer>> ˏ = new ArrayList();

    static class d<F, S> {
        private final S ˋ;
        private final F ˏ;

        private d(F f, S s) {
            this.ˏ = f;
            this.ˋ = s;
        }
    }

    static {
        ˏ.add(new d("5.1", Integer.valueOf(13)));
        ˏ.add(new d("5.0", Integer.valueOf(11)));
        ˏ.add(new d("4.1", Integer.valueOf(10)));
        ˏ.add(new d("4.0", Integer.valueOf(9)));
        ˏ.add(new d("3.1", Integer.valueOf(8)));
        ˏ.add(new d("3.0.5", Integer.valueOf(8)));
        ˏ.add(new d("3.0", Integer.valueOf(7)));
        ˏ.add(new d("2.3", Integer.valueOf(6)));
        ˏ.add(new d("2.0", Integer.valueOf(5)));
        ˏ.add(new d("1.6", Integer.valueOf(3)));
        ˏ.add(new d("1.5", Integer.valueOf(2)));
        ˏ.add(new d(BuildConfig.VERSION_NAME, Integer.valueOf(1)));
    }

    public static int ˎ(String str) {
        int indexOf = str.indexOf(95);
        if (indexOf == -1) {
            return 0;
        }
        String substring = str.substring(indexOf + 1);
        for (d dVar : ˏ) {
            if (substring.startsWith((String) dVar.ˏ)) {
                return ((Integer) dVar.ˋ).intValue();
            }
        }
        return 0;
    }
}
